<?php
// +----------------------------------------------------------------------
// | ebSIG
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.ebsig.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: liudaojian <liudaojian@ebsig.com>
// +----------------------------------------------------------------------

/**
 * 同步线下商品数据任务
 * @author   liudaojian <liudaojian@ebsig.com>
 * @version 1.0
 */

namespace App\Http\Controllers\TimedTask\SyncGoods;

use App\Http\Controllers\Controller;

use App\Service\Rpc\Goods;


class SyncGoodsController extends Controller
{

    /**
     * 查询线下商品
     * @return \Illuminate\Http\JsonResponse
     */
    public function query()
    {

        $sync_goods = new Goods();

        $res = $sync_goods->query();

        return response()->json($res);
        
    }

    /**
     * 查询商品库存
     * @return \Illuminate\Http\JsonResponse
     */
    public function queryLogistics()
    {

        $sync_goods = new Goods();

        $res = $sync_goods->queryLogistics();

        return response()->json($res);

    }

}